import request from "./request";
export function loginApi(data: any) {
    return request({
        url: '/token',
        method: 'post',
        data
    })
}


export function registerApi(data: any) {
    return request({
        url: '/register',
        method: 'post',
        data
    })
}

export function saveApi(data: any) {
    return request({
        url: '/updata',
        method: 'post',
        data
    })
}

export function getInfoApi( ) {
    return request({
        url: '/getinfo',
        method: 'get'
    })
}
// headers: {'Content-Type': 'multipart/form-data'}
